import service from '@/utils/http.js'
// wxlogin
export const wxlogin = (params) => {
    return service({
      url: 'wechat/wxlogin',
      method: 'post',
      data: params
    }) 
}
// 查询对应小程序的配置信息
export const csss = (params) => {
  return service({
    url: 'wechat/csss',
    method: 'post',
    data: params
  }) 
}

// 轮播信息
export const newsindex = (params) => {
  return service({
    url: 'wechat_news/index',
    method: 'post',
    data: params
  }) 
}

// 轮播图接口
export const Banner = (params) => {
  return service({
    url: 'Banner',
    method: 'post',
    data: params
  }) 
}

// 轮播信息详情获取
export const newsview = (params) => {
  return service({
    url: 'wechat_news/view',
    method: 'post',
    data: params
  }) 
}

// 用户协议隐私协议
export const setindex = (params) => {
  return service({
    url: 'wechat_set/index',
    method: 'post',
    data: params
  }) 
}


// 所有票的选购界面，主页点击票按钮
export const ticket_list = (params) => {
  return service({
    url: 'ticket_list',
    method: 'post',
    data: params
  }) 
}

// 票详情
export const ticket_view = (params) => {
  return service({
    url: 'ticket_list/view',
    method: 'post',
    data: params
  }) 
}

// 商务合作
export const cooperationadd = (params) => {
  return service({
    url: 'cooperation/add',
    method: 'post',
    data: params
  }) 
}

//行业动态
export const trendsindex = (params) => {
  return service({
    url: 'wechat_trends/index',
    method: 'post',
    data: params
  }) 
}

//行业动态详情
export const trendsview = (params) => {
  return service({
    url: 'wechat_trends/view',
    method: 'post',
    data: params
  }) 
}

//卡列表接口
export const cardindex = (params) => {
  return service({
    url: 'card_list/index',
    method: 'post',
    data: params
  }) 
}

//卡详情接口
export const cardview = (params) => {
  return service({
    url: 'card_list/view',
    method: 'post',
    data: params
  }) 
}

//场地列表接口
export const placeindex = (params) => {
  return service({
    url: 'place_list/index',
    method: 'post',
    data: params
  }) 
}

//场地详情接口
export const priceview = (params) => {
  return service({
    url: 'place_price/view',
    method: 'post',
    data: params
  }) 
}

//支付方式拉取接口
export const wechat_pay = (params) => {
  return service({
    url: 'wechat_pay/index',
    method: 'post',
    data: params
  }) 
}

//票支付接口
export const ticket_pay = (params) => {
  return service({
    url: 'pay/ticket_pay/wechat_pay',
    method: 'post',
    data: params
  }) 
}

//票二维码列表
export const bill_ticket = (params) => {
  return service({
    url: 'bill_ticket',
    method: 'post',
    data: params
  }) 
}

//票二维码列表
export const bill_ticketno = (params) => {
  return service({
    url: 'bill_ticket/no',
    method: 'post',
    data: params
  }) 
}

//票包单个详情
export const bill_ticket_view = (params) => {
  return service({
    url: 'bill_ticket/view',
    method: 'post',
    data: params
  }) 
}

//票支付接口
export const card_pay = (params) => {
  return service({
    url: 'pay/card_pay/wechat_pay',
    method: 'post',
    data: params
  }) 
}

//卡包待使用
export const bill_card = (params) => {
  return service({
    url: 'bill_card',
    method: 'post',
    data: params
  }) 
}

//卡包已失效
export const bill_cardno = (params) => {
  return service({
    url: 'bill_card/no',
    method: 'post',
    data: params
  }) 
}

//单个卡详情
export const bill_card_view = (params) => {
  return service({
    url: 'bill_card/view',
    method: 'post',
    data: params
  }) 
}

//场地支付接口
export const place_pay = (params) => {
  return service({
    url: 'pay/place_pay/wechat_pay',
    method: 'post',
    data: params
  }) 
}

// 验证用户token是否过期，用户是否封禁
export const token_is_ok = (params) => {
  return service({
    url: 'user/token_is_ok',
    method: 'get',
    params
  }) 
}
// 获取用户个人详情
export const userdetails = (params) => {
  return service({
    url: 'user/details',
    method: 'post',
    data: params
  }) 
}
// 用户信息修改
export const details_edit = (params) => {
  return service({
    url: 'user/details_edit',
    method: 'post',
    data: params
  }) 
}
// 订单
export const wxbill = (params) => {
  return service({
    url: 'wx/bill',
    method: 'post',
    data: params
  }) 
}

// 卡包待使用（新）
export const user_card = (params) => {
  return service({
    url: 'wx/user_card',
    method: 'post',
   params
  }) 
}

// 卡包已过期（新）
export const user_cardno = (params) => {
  return service({
    url: 'wx/user_card/no',
    method: 'post',
    params
  }) 
}

// 单个卡详情（新）
export const user_cardview = (params) => {
  return service({
    url: 'wx/user_card/view',
    method: 'post',
    data: params
  }) 
}

// 卡消费记录
export const user_card_log = (params) => {
  return service({
    url: 'wx/user_card_log',
    method: 'post',
    data: params
  }) 
}

// 场地包未使用 
export const wxplace = (params) => {
  return service({
    url: 'wx/place',
    method: 'post',
    data: params
  }) 
}

// 场地包已结束
export const wxplaceno = (params) => {
  return service({
    url: 'wx/place/no',
    method: 'post',
    data: params
  }) 
}

// 场地包详情
export const placeview = (params) => {
  return service({
    url: 'wx/place/view',
    method: 'post',
    data: params
  }) 
}

// 退款-票的接口
export const ticket_refund_pay = (params) => {
  return service({
    url: 'pay/ticket_pay/refund_pay',
    method: 'post',
    data: params
  }) 
}

// 退款-卡的接口
export const card_refund_pay = (params) => {
  return service({
    url: 'pay/card_pay/refund_pay',
    method: 'post',
    data: params
  }) 
}
// 退款-场地的接口
export const place_refund_pay = (params) => {
  return service({
    url: 'pay/place_pay/refund_pay',
    method: 'post',
    data: params
  }) 
}
